<li>
    <span class="category-name"><?php echo $category['category']->getTitle(); ?></span>
    <span class="category-actions">
        &nbsp;<?php echo link_to(__('Edit'),'category/edit?id='. $category['category']->getId())?>
        &nbsp;<?php echo link_to(__('Delete'),'category/delete?id='. $category['category']->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?'))?>
    </span>
    <?php if (!empty($category['children'])) : ?>
    <ul>
        <?php foreach ($category['children'] as $categ) : ?>
        <?php include_partial('category/list',array('category'=>$categ)); ?>
        <?php endforeach;?>
    </ul>
    <?php endif;?>
</li>